home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _ApplicationControlBarStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.3 KB  |  44 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _ApplicationControlBarStyle
  8.    {
  9.       public function _ApplicationControlBarStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var fbs:IFlexModuleFactory = param1;
  17.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ApplicationControlBar");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration("ApplicationControlBar",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.paddingTop = 5;
  28.                this.paddingLeft = 8;
  29.                this.fillAlphas = [0,0];
  30.                this.cornerRadius = 5;
  31.                this.paddingRight = 8;
  32.                this.fillColors = [16777215,16777215];
  33.                this.dropShadowEnabled = true;
  34.                this.docked = false;
  35.                this.paddingBottom = 4;
  36.                this.borderStyle = "applicationControlBar";
  37.                this.shadowDistance = 5;
  38.             };
  39.          }
  40.       }
  41.    }
  42. }
  43.  
  44.